import {createRouter, createWebHashHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
    {
        path: '/',
        name: 'home',
        component: HomeView,
        meta: {
            keepalive: true
        }
    },
    {
        path: '/videoItem',
        name: 'videoItem',
        component: () => import('@/views/VideoItemView')
    },
    {
        path: '/VideoPlay',
        name: 'VideoPlay',
        component: () => import('@/views/VideoPlayView')
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
